<!doctype html>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title>活动</title>
<link href="../../css/newStyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/utils.js"></script>
<script type="text/javascript" src="../../js/openId.js"></script>
<script type="text/javascript" src="../../js/qmsk-1.2.js"></script>
<script type="text/javascript" src="../../js/imgBigger.js"></script>
<script type="text/javascript" src="../../js/check.js"></script>
<script type="text/javascript">
    $(function(){
        /* var params = {
        		title : document.title, // 分享标题
        		desc :window.location.href, //分享内容
        		img : '', //分享，显示图片
        		img_width : 640, // 分享，显示图片宽度
        		img_height : 640, // 分享，显示图片高度
        		link : window.location.href+"&fenxiang=1", // 分享，链接； 1 区别是否是分享的页面
        	};
        onBridgeReady(params) */
    	var fenxiang = getIdByName("fenxiang");
    	if(fenxiang==1){
    	getIp();
    	}
    });
    function getIp(){
    	var ip = 0;
    	var dt = _findInfo("../../../wechat/testip2", null);
    	if(IsNotEmpty(dt)&&dt.state==0){
    		 ip=getHeadIndexValue(0, dt, "ip");
    		 pinglunDianz(ip);
    		}
    }

    function pinglunDianz(ip){
    	var url = 	window.location.href;
    	var heads = new Array("openId","url","ip","shopId");
    	var datas = new Array(_openId,url,ip,_shopId);
    	var parser = new Object();
    	var jsonParserStr = null;
    	if (IsNotEmpty(datas)){
    		addToParser(heads, datas, "add" , parser);
    		jsonParserStr =  JSON.stringify(parser);
    	}
    	var dt = _PostInfoRstNoMessage("../../../shareDiscuss/insert/insertInfo", {'data':jsonParserStr});
    	if(IsNotEmpty(dt)&&dt.state==0){
    	}
    }
</script>

</head>
<body >
<div class="wrapper">
  <div class="container ">
  	<div class="onlyImg"><img src="../../images/txtImg/bz_01.jpg"></div>
  	<div class="onlyImg"><img src="../../images/txtImg/bz_02.jpg"></div>
    <h2 class='title'>分享关注方法</h2><div class='onlyImg'><img src='../../images/survey.png'></div>
  </div>
</div>
</body>
</html>